﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Iguana.Core.HypterText
{
    public class ElementCollection : List<IElement>
    {
        public IElement this[IElement i]
        {
            get
            {
                return this[i];
            }
            set
            {
                this[i] = value;
            }
        }

        // Returns whether or not an element is allowed to be nested.
        public bool Validate(IElement element)
        {
            return this.Contains(element);
        }

     
    }
}
